package com.horton;

public class JsonRespVO {

    private final String name;
    private final String price;
    private final String targetPrice;
    private final String label;
    private final String alarm;
    private final String date;
    private final String percentage;

    private JsonRespVO(Builder builder) {
        name = builder.name;
        price = builder.price;
        targetPrice = builder.targetPrice;
        label = builder.label;
        alarm = builder.alarm;
        date = builder.date;
        percentage = builder.percentage;
    }

    public static final class Builder {
        private String name;
        private String price;
        private String targetPrice;
        private String label;
        private String alarm;
        private String date;
        private String percentage;

        public Builder() {
        }

        public Builder name(String val) {
            name = val;
            return this;
        }

        public Builder price(String val) {
            price = val;
            return this;
        }

        public Builder targetPrice(String val) {
            targetPrice = val;
            return this;
        }

        public Builder label(String val) {
            label = val;
            return this;
        }

        public Builder alarm(String val) {
            alarm = val;
            return this;
        }

        public Builder date(String val) {
            date = val;
            return this;
        }

        public Builder percentage(String val) {
            percentage = val;
            return this;
        }

        public JsonRespVO build() {
            return new JsonRespVO(this);
        }
    }

    public String getName() {
        return name;
    }

    public String getPrice() {
        return price;
    }

    public String getTargetPrice() {
        return targetPrice;
    }

    public String getLabel() {
        return label;
    }

    public String getAlarm() {
        return alarm;
    }

    public String getDate() {
        return date;
    }

    public String getPercentage() {
        return percentage;
    }

    @Override
    public String toString() {
        return "JsonRespVO{" +
                "name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", targetPrice='" + targetPrice + '\'' +
                ", label='" + label + '\'' +
                ", alarm='" + alarm + '\'' +
                ", date='" + date + '\'' +
                ", percentage='" + percentage + '\'' +
                '}';
    }
}
